package main

import "golang.org/x/tour/pic"
import (
	"fmt"
)
func Pic(dx, dy int) [][]uint8 {
	//fmt.Print(dx,dy)
	rows := dx
	cols := dy
	arr := make([][]uint8, rows)
	for i := range arr {
    	arr[i] = make([]uint8, cols)
	}
	fmt.Print("ok\n")
	for i := 0; i < rows; i++{
		for j := 0; j < cols; j++{
			arr[i][j] = uint8((i + j) / 2);
		}
	}
	return arr
}

func main() {
	pic.Show(Pic)
}
